package com.hubt.model;

import java.io.Serializable;
import java.util.Date;

public class PtUser implements Serializable {
    private String userUuid;

    private String id;

    private String username;

    private String password;

    private String email;

    private String mobile;

    private Short enabled;

    private Short accountNonExpired;

    private Short credentialsNonExpired;

    private Short accountNonLocked;

    private String organUuid;

    private String niceName;

    private Short isAdmin;

    private Short maximumsessions;

    private Date registerdate;

    private Date lastlogintime;

    private String pwdque;

    private String pwdans;

    private String remark;

    private String depid;

    private String status;

    private Date modtime;

    private String modifierid;

    private Short isSum;

    private static final long serialVersionUID = 1L;

    public String getUserUuid() {
        return userUuid;
    }

    public void setUserUuid(String userUuid) {
        this.userUuid = userUuid == null ? null : userUuid.trim();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile == null ? null : mobile.trim();
    }

    public Short getEnabled() {
        return enabled;
    }

    public void setEnabled(Short enabled) {
        this.enabled = enabled;
    }

    public Short getAccountNonExpired() {
        return accountNonExpired;
    }

    public void setAccountNonExpired(Short accountNonExpired) {
        this.accountNonExpired = accountNonExpired;
    }

    public Short getCredentialsNonExpired() {
        return credentialsNonExpired;
    }

    public void setCredentialsNonExpired(Short credentialsNonExpired) {
        this.credentialsNonExpired = credentialsNonExpired;
    }

    public Short getAccountNonLocked() {
        return accountNonLocked;
    }

    public void setAccountNonLocked(Short accountNonLocked) {
        this.accountNonLocked = accountNonLocked;
    }

    public String getOrganUuid() {
        return organUuid;
    }

    public void setOrganUuid(String organUuid) {
        this.organUuid = organUuid == null ? null : organUuid.trim();
    }

    public String getNiceName() {
        return niceName;
    }

    public void setNiceName(String niceName) {
        this.niceName = niceName == null ? null : niceName.trim();
    }

    public Short getIsAdmin() {
        return isAdmin;
    }

    public void setIsAdmin(Short isAdmin) {
        this.isAdmin = isAdmin;
    }

    public Short getMaximumsessions() {
        return maximumsessions;
    }

    public void setMaximumsessions(Short maximumsessions) {
        this.maximumsessions = maximumsessions;
    }

    public Date getRegisterdate() {
        return registerdate;
    }

    public void setRegisterdate(Date registerdate) {
        this.registerdate = registerdate;
    }

    public Date getLastlogintime() {
        return lastlogintime;
    }

    public void setLastlogintime(Date lastlogintime) {
        this.lastlogintime = lastlogintime;
    }

    public String getPwdque() {
        return pwdque;
    }

    public void setPwdque(String pwdque) {
        this.pwdque = pwdque == null ? null : pwdque.trim();
    }

    public String getPwdans() {
        return pwdans;
    }

    public void setPwdans(String pwdans) {
        this.pwdans = pwdans == null ? null : pwdans.trim();
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public String getDepid() {
        return depid;
    }

    public void setDepid(String depid) {
        this.depid = depid == null ? null : depid.trim();
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public Date getModtime() {
        return modtime;
    }

    public void setModtime(Date modtime) {
        this.modtime = modtime;
    }

    public String getModifierid() {
        return modifierid;
    }

    public void setModifierid(String modifierid) {
        this.modifierid = modifierid == null ? null : modifierid.trim();
    }

    public Short getIsSum() {
        return isSum;
    }

    public void setIsSum(Short isSum) {
        this.isSum = isSum;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        PtUser other = (PtUser) that;
        return (this.getUserUuid() == null ? other.getUserUuid() == null : this.getUserUuid().equals(other.getUserUuid()))
            && (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUsername() == null ? other.getUsername() == null : this.getUsername().equals(other.getUsername()))
            && (this.getPassword() == null ? other.getPassword() == null : this.getPassword().equals(other.getPassword()))
            && (this.getEmail() == null ? other.getEmail() == null : this.getEmail().equals(other.getEmail()))
            && (this.getMobile() == null ? other.getMobile() == null : this.getMobile().equals(other.getMobile()))
            && (this.getEnabled() == null ? other.getEnabled() == null : this.getEnabled().equals(other.getEnabled()))
            && (this.getAccountNonExpired() == null ? other.getAccountNonExpired() == null : this.getAccountNonExpired().equals(other.getAccountNonExpired()))
            && (this.getCredentialsNonExpired() == null ? other.getCredentialsNonExpired() == null : this.getCredentialsNonExpired().equals(other.getCredentialsNonExpired()))
            && (this.getAccountNonLocked() == null ? other.getAccountNonLocked() == null : this.getAccountNonLocked().equals(other.getAccountNonLocked()))
            && (this.getOrganUuid() == null ? other.getOrganUuid() == null : this.getOrganUuid().equals(other.getOrganUuid()))
            && (this.getNiceName() == null ? other.getNiceName() == null : this.getNiceName().equals(other.getNiceName()))
            && (this.getIsAdmin() == null ? other.getIsAdmin() == null : this.getIsAdmin().equals(other.getIsAdmin()))
            && (this.getMaximumsessions() == null ? other.getMaximumsessions() == null : this.getMaximumsessions().equals(other.getMaximumsessions()))
            && (this.getRegisterdate() == null ? other.getRegisterdate() == null : this.getRegisterdate().equals(other.getRegisterdate()))
            && (this.getLastlogintime() == null ? other.getLastlogintime() == null : this.getLastlogintime().equals(other.getLastlogintime()))
            && (this.getPwdque() == null ? other.getPwdque() == null : this.getPwdque().equals(other.getPwdque()))
            && (this.getPwdans() == null ? other.getPwdans() == null : this.getPwdans().equals(other.getPwdans()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getDepid() == null ? other.getDepid() == null : this.getDepid().equals(other.getDepid()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getModtime() == null ? other.getModtime() == null : this.getModtime().equals(other.getModtime()))
            && (this.getModifierid() == null ? other.getModifierid() == null : this.getModifierid().equals(other.getModifierid()))
            && (this.getIsSum() == null ? other.getIsSum() == null : this.getIsSum().equals(other.getIsSum()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUserUuid() == null) ? 0 : getUserUuid().hashCode());
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUsername() == null) ? 0 : getUsername().hashCode());
        result = prime * result + ((getPassword() == null) ? 0 : getPassword().hashCode());
        result = prime * result + ((getEmail() == null) ? 0 : getEmail().hashCode());
        result = prime * result + ((getMobile() == null) ? 0 : getMobile().hashCode());
        result = prime * result + ((getEnabled() == null) ? 0 : getEnabled().hashCode());
        result = prime * result + ((getAccountNonExpired() == null) ? 0 : getAccountNonExpired().hashCode());
        result = prime * result + ((getCredentialsNonExpired() == null) ? 0 : getCredentialsNonExpired().hashCode());
        result = prime * result + ((getAccountNonLocked() == null) ? 0 : getAccountNonLocked().hashCode());
        result = prime * result + ((getOrganUuid() == null) ? 0 : getOrganUuid().hashCode());
        result = prime * result + ((getNiceName() == null) ? 0 : getNiceName().hashCode());
        result = prime * result + ((getIsAdmin() == null) ? 0 : getIsAdmin().hashCode());
        result = prime * result + ((getMaximumsessions() == null) ? 0 : getMaximumsessions().hashCode());
        result = prime * result + ((getRegisterdate() == null) ? 0 : getRegisterdate().hashCode());
        result = prime * result + ((getLastlogintime() == null) ? 0 : getLastlogintime().hashCode());
        result = prime * result + ((getPwdque() == null) ? 0 : getPwdque().hashCode());
        result = prime * result + ((getPwdans() == null) ? 0 : getPwdans().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getDepid() == null) ? 0 : getDepid().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getModtime() == null) ? 0 : getModtime().hashCode());
        result = prime * result + ((getModifierid() == null) ? 0 : getModifierid().hashCode());
        result = prime * result + ((getIsSum() == null) ? 0 : getIsSum().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", userUuid=").append(userUuid);
        sb.append(", id=").append(id);
        sb.append(", username=").append(username);
        sb.append(", password=").append(password);
        sb.append(", email=").append(email);
        sb.append(", mobile=").append(mobile);
        sb.append(", enabled=").append(enabled);
        sb.append(", accountNonExpired=").append(accountNonExpired);
        sb.append(", credentialsNonExpired=").append(credentialsNonExpired);
        sb.append(", accountNonLocked=").append(accountNonLocked);
        sb.append(", organUuid=").append(organUuid);
        sb.append(", niceName=").append(niceName);
        sb.append(", isAdmin=").append(isAdmin);
        sb.append(", maximumsessions=").append(maximumsessions);
        sb.append(", registerdate=").append(registerdate);
        sb.append(", lastlogintime=").append(lastlogintime);
        sb.append(", pwdque=").append(pwdque);
        sb.append(", pwdans=").append(pwdans);
        sb.append(", remark=").append(remark);
        sb.append(", depid=").append(depid);
        sb.append(", status=").append(status);
        sb.append(", modtime=").append(modtime);
        sb.append(", modifierid=").append(modifierid);
        sb.append(", isSum=").append(isSum);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}